<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue 模板语法</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">{{name + ' ui'}}
        <div v-text="name +' ui'"</div>
        <div v-html="name +' ui'"</div></div>
    </div>
    
    <script>
        //原生
       // var dom = document.getById('app');
       // dom.innerHtml = 'hello word';
       var app = new Vue({
           el:"#app",
           data:{
               name:'hello word'
           }
       });
       setTimeout(function() {
            app.$data.content = 'bye world';
       },2000)

    </script>
</body>
</html>